package edu.zut.cs.software.estateagent.logon.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import edu.zut.cs.software.base.web.spring.controller.GenericController;
import edu.zut.cs.software.estateagent.logon.domain.Logon;
import edu.zut.cs.software.estateagent.logon.service.LogonManager;

@Controller
@RequestMapping("/logon/logon")
public class LogonController extends GenericController<Logon, Long, LogonManager> {
	LogonManager logonManager;

	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/logon/index";
		return result;
	}

	@Autowired
	public void setLogonManager(LogonManager logonManager) {
		this.logonManager = logonManager;
		this.manager = this.logonManager;
	}
}
